"use strict";
let arr = ['a', 'b', 'c'];
let product = { name: '空调', price: 80, desc: "冬暖夏凉" };
console.log(product);
//商品列表  数组
let list = [];
list.push({ name: '空调', price: 8000, desc: "冬暖夏凉" });
list.push({ name: '电扇', price: 90, desc: '风' });
console.log(list);
//类型推断
let num11 = 10;
//类型断言
let someValue = 'it is any type';
//1.尖角号的形式
let someLength1 = someValue.length;
console.log(someLength1);
//2.as形式  常用
let someLength2 = someValue.length;
console.log(someLength2);
let square1 = { color: 'red', width: 80, height: 80 };
console.log(square1);
